package main

/**
返回的结果 可以抽象成一个个结构体
*/

// 注意字段名大写开头 小写开头是私有字段
type Recruit struct {
	// 这个` 是Tab上边那个键 不是单引号 这样可以声明 这个字段在json里叫啥
	Job string `json:"job" form:"job"`
	Address  string `json:"address" form:"address"`
	Company string `json:"company" form:"company"`
	Mode string `json:"mode" form:"mode"`
	People string `json:"people" form:"people"`
	Description string `json:"description" form:"description"`
	Skill string `json:"skill" form:"skill"`
	Method string `json:"method" form:"method"`
	Allow bool `json:"allow" form:"allow"`
	File string `json:"file" form:"file"`
	Tag string `json:"tag" form:"tag"`
}

type Resume struct {
	Job string `json:"job" form:"job"`
	Name string `json:"name" form:"name"`
	Content string `json:"content" form:"content"`
	Id int `json:"id" form:"id"`
	File string `json:"file" form:"file"`
}

type Word struct {
	Date string `json:"date" form:"date"`
	Name string `json:"name" form:"name"`
	Content string `json:"content" form:"content"`
	Id int `json:"id" form:"id"`
	Allow bool `json:"allow" form:"allow"`
	Tag string `json:"tag" form:"tag"`
}

type User struct{
	Id int `json:"id" form:"id"`
	Name string `json:"name" form:"name"`
	Password string `json:"password" form:"password"`
	Email string `json:"email" form:"email"`
	SchoolId string `json:"schoolId" form:"schoolId"`
	Identity string `json:"identity" form:"identity"`
	Question string `json:"question" form:"question"`
	Answer string `json:"answer" form:"answer"`
	Allow int `json:"allow" form:"allow"`	
}

type Log struct{
	Email string `json:"email" form:"email"`
	Password string `json:"password" form:"password"`
}

type Apply struct{
	Company string `json:"company" form:"company"`
	Job string `json:"job" form:"job"`
	Date string `json:"date" form:"date"`
	Remarks string `json:"remarks" form:"remarks"`
	Id int `json:"id" form:"id"`
	Tag string `json:"tag" form:"tag"`
}

type Schedule struct{
	Todo string `json:"todo" form:"todo"`
	Date string `json:"date" form:"date"`
	Remarks string `json:"remarks" form:"remarks"`
	Id int `json:"id" form:"id"`
	Tag string `json:"tag" form:"tag"`
}

type Note struct{
	Head string `json:"head" form:"head"`
	Content string `json:"content" form:"content"`
	Id int `json:"id" form:"id"`
	Tag string `json:"tag" form:"tag"`
}

type Personal struct{
	Apply Apply
	Schedule Schedule
	Note Note
	Id int `json:"id" form:"id"`
}

type Changepassword struct{
	New string `json:"new" form:"new"`
	Old string `json:"old" form:"old"`
	Id int `json:"id" form:"id"`
}

type Release struct{
	Mold string `json:"mold" form:"mold"`
	Tag string `json:"tag" form:"tag"`
}

type Findpassword struct{
	Email string `json:"email" form:"email"`
	Question string `json:"question" form:"question"`
	Answer string `json:"answer" form:"answer"`
}

type Newpassword struct{
	Email string `json:"email" form:"email"`
	Password string `json:"password" form:"password"`
}